package com.wondertek.service.dto.sys.req;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author xqs
 */
@Data
public class SysDictUpdateReq {

   @NotBlank(message = "id.not.null")
   private String id;

   /**
    * 字典名称
    */
   @Schema(name = "dictName",description = "字典名称")
   @NotBlank(message = "dict.name.not.null")
   @Length(min = 1, max = 30, message = "name.length")
   private String dictName;

   /**
    * 字典编码
    */
   @Schema(name = "dictCode",description = "字典编码", hidden = true)
   @JsonIgnore
   private String dictCode;

   /**
    * 字典数据值
    */
   @Schema(name = "dictValue",description = "字典数据值")
   private String dictValue;
}
